import java.util.ArrayList;
import java.util.List;


public class Test {
	
	private final List<AbstractTestCase> tests = new ArrayList<AbstractTestCase>();
	
	public void setUp() {
		tests.add(new AddNewCourseTest());
		tests.add(new GetAllCoursesTest());
		tests.add(new RegisterStudentTest());
		tests.add(new GetAllStudentsForCourseTest());
	}
	
	public void test() {
		this.setUp();
		for(AbstractTestCase test : tests) {
			try {
				test.test();
			} catch (Exception e) {
				System.out.println("Test threw Exception " + e.getMessage());
			}
		}
	}
	
	public static void main(String[] args) {
		Test test = new Test();
		test.test();
	}
}
